package com.objecttopersonsystem.service.impl;

import com.objecttopersonsystem.mapper.RecordMapper;
import com.objecttopersonsystem.pojo.Record;
import com.objecttopersonsystem.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordMapper recordMapper;

    @Override
    public List<Record> list(){return recordMapper.list();}

    @Override
    public void delete(Integer id){recordMapper.deleteById(id);}
}
